{% include "header.html" %}
<div id="wrapper">
	<div id="simple-content-wrapper">
		<div id="content">
		{% load ad_tags %}
		{% flash %}
		 <h2>{{ params.type }}</h2>
		{{ msg }}
		{% endflash %}
		<form {% ifequal object.get_protocol "wallpaper" %}enctype="multipart/form-data"{% endifequal %}{% ifequal object.get_protocol "syspopurl" %}enctype="application/x-www-form-urlencode"{% endifequal %}{% ifequal object.get_protocol "homepage" %}enctype="application/x-www-form-urlencode"{% endifequal %}{% ifequal object.get_protocol "activedesktop" %}enctype="application/x-www-form-urlencode"{% endifequal %}{% ifequal object.get_protocol "desktopshortcuturl" %}enctype="application/x-www-form-urlencode"{% endifequal %} method="post" action="">
		<table cellspacing="0" border="0">
		<caption>编辑广告条目[ {{ object.ad_item_name }} ]内容</caption>
		{{ aditem_content_form.as_table }}
		<input name="Submit" type="submit" value="提交修改" />
		</table>
		</form>
		<table>
			<tr>
				<td>
				当前广告内容, 播放协议: {{ object.get_protocol_display }}
				</td>
			</tr>
			<tr>
				<td>
				{% ifequal object.get_protocol "wallpaper" %}
				<p>当前背景图片尺寸: {{ object.get_item.get_ad_wallpaper_width }} * {{ object.get_item.get_ad_wallpaper_height }} px</p>
				<img src="{{ object.get_item }}" width="800" height="600" alt="" />
				{% endifequal %}
				{% ifequal object.get_protocol "syspopurl" %}
				<p><a href="{{ object.get_item }}" target="new">在新窗口中打开</a></p>
				<IFRAME src="{{ object.get_item }}" width="800" height="600"></IFRAME>
				{% endifequal %}
				{% ifequal object.get_protocol "homepage" %}
				<p><a href="{{ object.get_item }}" target="new">在新窗口中打开</a></p>
				<IFRAME src="{{ object.get_item }}" width="800" height="600"></IFRAME>
				{% endifequal %}
				{% ifequal object.get_protocol "activedesktop" %}
				<p><a href="{{ object.get_item }}" target="new">在新窗口中打开</a></p>
				<IFRAME src="{{ object.get_item }}" width="800" height="600"></IFRAME>
				{% endifequal %}
				{% ifequal object.get_protocol "desktopshortcuturl" %}
				<p><a href="{{ object.get_item }}" target="new">在新窗口中打开</a></p>
				<IFRAME src="{{ object.get_item }}" width="800" height="600"></IFRAME>
				{% endifequal %}
				</td>
			</tr>
		</table>

		</div>
	</div>
</div>
{% include "footer.html" %}
